package com.zmn.oms.persistence.interfaces.ins;

import com.zmn.oms.model.entity.ins.InsOrder;
import com.zmn.oms.model.entity.ins.MapOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 类描述：保险单
 *
 * @author liuying
 * @date 2019/01/23 10:08
 */
public interface InsOrderDao {

    /**
     * 查询保险单信息
     *
     * @param orderId
     * @return
     */
    InsOrder findInsOrderByOrderId(@Param("orderId") Long orderId);

    /**
     * 查询保险单信息
     *
     * @param orderIds
     * @return
     */
    List<InsOrder> listInsOrderByOrderIds(@Param("orderIds") List<Long> orderIds);

    /**
     * 查询保险单信息
     *
     * @param orderId
     * @return
     */
    InsOrder findInsOrderByKey(@Param("insId") Long orderId);

    /**
     * 根据订单ID修改
     *
     * @param insOrder
     */
    void updateInsOrderByKey(InsOrder insOrder);

    /**
     * 新增
     *
     * @param insOrder
     * @return
     */
    int insertInsOrder(InsOrder insOrder);
}